com.supermap.plot
Class AnimationGO
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.plot.AnimationGO
-
- Direct Known Subclasses:
- AnimationAttribute, AnimationBlink, AnimationGrow, AnimationRotate, AnimationScale, AnimationShow, AnimationWay
public class AnimationGO extends InternalHandleDisposable
All animation parent class
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddispose()Closes the animationsbooleanfromXml(java.lang.String xmlStr)Converts data from xml to animationAnimationDefine.AnimationTypegetAnimationType()Gets animation typesdoublegetDuration()Gets time of animation.intgetGeometry()Gets the geometric object id.java.lang.StringgetLayerName()Gets layer namejava.lang.StringgetName()Gets the animation namedoublegetStartTime()Gets the starting timebooleansetDuration(double Timelong)Sets time of animation.voidsetGeometry(GeoGraphicObject pGeometry, long pMapControl, java.lang.String layerName)Sets animation objectsbooleansetName(java.lang.String name)Sets the animation namebooleansetStartTime(double nStartTime)Sets the starting timejava.lang.StringtoXml()Converts to the xml object
-
-
-
Method Detail
-
getAnimationType
public AnimationDefine.AnimationType getAnimationType()
Gets animation types- Returns:
- Animation types
-
setGeometry
public void setGeometry(GeoGraphicObject pGeometry, long pMapControl, java.lang.String layerName)
Sets animation objects- Parameters:
pGeometry- The Geometry object.pMapControl- mapcontrol objectlayerName- Layer name
-
getGeometry
public int getGeometry()
Gets the geometric object id.- Returns:
- id
-
setName
public boolean setName(java.lang.String name)
Sets the animation name- Parameters:
name- Name- Returns:
- whether settings are successful.
-
getName
public java.lang.String getName()
Gets the animation name- Returns:
- Animation name
-
setStartTime
public boolean setStartTime(double nStartTime)
Sets the starting time- Parameters:
nStartTime- the starting time- Returns:
- whether settings are successful.
-
getStartTime
public double getStartTime()
Gets the starting time- Returns:
- the starting time
-
setDuration
public boolean setDuration(double Timelong)
Sets time of animation.- Parameters:
Timelong- Time- Returns:
- whether settings are successful.
-
getDuration
public double getDuration()
Gets time of animation.- Returns:
- The time of animation
-
getLayerName
public java.lang.String getLayerName()
Gets layer name- Returns:
- The name of the layer.
-
fromXml
public boolean fromXml(java.lang.String xmlStr)
Converts data from xml to animation- Parameters:
xmlStr- xml object- Returns:
- whether succeed
-
toXml
public java.lang.String toXml()
Converts to the xml object- Returns:
- xml
-
dispose
public void dispose()
Closes the animations
-
-